package edu.java.lectures.lec12.threads.synchronization.dynamic.bank;

public class Dady implements Runnable {

    private BankAccount dadyBankAccount;

    public Dady(BankAccount dadyBankAccount) {
	this.dadyBankAccount = dadyBankAccount;
    }

    @Override
    public void run() {
	dadyBankAccount.withdraw(10);
    }
}
